package cn.bgs.service.impl;

import cn.bgs.dao.curriculumSubjectMapper;
import cn.bgs.pojo.curriculum_subject;
import cn.bgs.pojo.trimesterCurriculumSchedule;
import cn.bgs.service.curriculumService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: bei
 * @Package: cn.bgs.service.impl
 * @ClassName: curriculumServiceImpl
 * @Author: Administrator
 * @Description:
 * @Date: 2021/8/26 0026 16:02
 * @Version: 1.0
 */
@Service
public class curriculumServiceImpl implements curriculumService {
    @Autowired
    private curriculumSubjectMapper curriculumSubjectMapper;

    @Override
    public List<curriculum_subject> findCurriculum(curriculum_subject curriculumSubject) {
        return curriculumSubjectMapper.findCurriculum(curriculumSubject);
    }

    @Override
    public Integer insertCurri(curriculum_subject curriculumSubject) {
        return curriculumSubjectMapper.insertSelective(curriculumSubject);
    }

    @Override
    public Integer deleteCur(List<Integer> list) {
        return curriculumSubjectMapper.deleteCur(list);
    }

    @Override
    public Integer curriDelete(Integer pkId) {
        return curriculumSubjectMapper.deleteByPrimary(pkId);
    }

    @Override
    public Integer updateCurric(curriculum_subject curriculumSubject) {
        return curriculumSubjectMapper.updateByPrimaryKey(curriculumSubject);
    }


    @Override
    public List<trimesterCurriculumSchedule> findTrimester() {
        return curriculumSubjectMapper.findTrimester();
    }
}
